import Vue from 'vue'
import Router from 'vue-router'

import mainPage from '@/components/mainPage'

//系统管理
import jigou_manage from '@/components/sys_management/jigou_manage'
import role_manage from '@/components/sys_management/role_manage'
import user_manage from '@/components/sys_management/user_manage'
import add_role_manage from '@/components/sys_management/add_role_manage'
import user_manage_details from '@/components/sys_management/user_manage_details'
import role_manage_edit from '@/components/sys_management/role_manage_edit'
import add_user from '@/components/sys_management/add_user'
import user_manage_edit from '@/components/sys_management/user_manage_edit'
import role_manage_details from '@/components/sys_management/role_manage_details'

//缴费信息维护
import payFee_save from '@/components/payFee_save/payFee_save'
import payFee_edit from '@/components/payFee_save/payFee_edit'
import payFee_details from '@/components/payFee_save/payFee_details'
import add_payFee_people from '@/components/payFee_save/add_payFee_people'

//收费管理
import project_type_set from '@/components/charge_management/project_type_set'
import charge_item_set from '@/components/charge_management/charge_item_set'
import hand_generat_cost from '@/components/charge_management/hand_generat_cost'
import handBatch_generat_cost from '@/components/charge_management/handBatch_generat_cost'
import charge_inquiry from '@/components/charge_management/charge_inquiry'
import charge_under_line from '@/components/charge_management/charge_under_line'
import add_project_type from '@/components/charge_management/add_project_type'
import amend_project_type from '@/components/charge_management/amend_project_type'
import add_charge_item from '@/components/charge_management/add_charge_item'
import amend_charge_item from '@/components/charge_management/amend_charge_item'
import charge_item_set_info from '@/components/charge_management/charge_item_set_info'
import charge_info from '@/components/charge_management/charge_info'
//通知
import notice_manage from '@/components/notice/notice_manage'
import add_notice from '@/components/notice/add_notice'

import add from '@/components/add'
import table from '@/components/table'
import info from '@/components/info'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      component: mainPage
    },

    //系统管理
    {
      path: '/sys_management/jigou_manage',
      component: jigou_manage
    },
    {
      path: '/sys_management/role_manage',
      component: role_manage
    },
    {
      path: '/sys_management/user_manage',
      component: user_manage
    },
    {
      path: '/sys_management/add_user',
      component: add_user
    },
    {
      path: '/sys_management/add_role_manage',
      component: add_role_manage
    },
    {
      path: '/sys_management/user_manage_details',
      component: user_manage_details
    },
    {
      path: '/sys_management/role_manage_edit',
      component: role_manage_edit
    },
    {
      path: '/sys_management/user_manage_edit',
      component: user_manage_edit
    },
    {
      path: '/sys_management/role_manage_details',
      component: role_manage_details
    },

    //缴费信息维护
    {
      path: '/payFee_save/payFee_save',
      component: payFee_save
    },
    {
      path: '/payFee_save/add_payFee_people',
      component: add_payFee_people
    },
    {
      path: '/payFee_save/payFee_edit',
      component: payFee_edit
    },
    {
      path: '/payFee_save/payFee_details',
      component: payFee_details
    },

    //收费管理
    {
      path: '/charge_management/project_type_set',
      component: project_type_set
    },
    {
      path: '/charge_management/charge_item_set',
      component: charge_item_set
    },
    {
      path: '/charge_management/hand_generat_cost',
      component: hand_generat_cost
    },
    {
      path: '/charge_management/handBatch_generat_cost',
      component: handBatch_generat_cost
    },
    {
      path: '/charge_management/charge_inquiry',
      component: charge_inquiry
    },
    {
      path: '/charge_management/charge_under_line',
      component: charge_under_line
    },
    // 新增项目类型页面
    {
      path: '/charge_management/add_project_type',
      component: add_project_type
    },
    // 修改项目类型页面
    {
      path: '/charge_management/amend_project_type',
      component: amend_project_type
    },
    // 添加收费项目页面
    {
      path: '/charge_management/add_charge_item',
      component: add_charge_item
    },
    // 修改收费项目页面
    {
      path: '/charge_management/amend_charge_item',
      component: amend_charge_item
    },
    // 收费项目详情页
    {
      path: '/charge_management/charge_item_set_info',
      component: charge_item_set_info
    },
    // 缴费详情页
    {
      path: '/charge_management/charge_info',
      component: charge_info
    },

    //通知
    {
      path: '/notice/notice_manage',
      component: notice_manage
    },
    {
      path: '/notice/add_notice',
      component: add_notice
    },


    {
      path: '/table',
      component: table
    },
    {
      path: '/add',
      component: add
    },
    {
      path: '/info',
      component: info
    },
  ]
})
